#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


private slots:
    void on_txtDragon_textChanged(const QString &arg1);

    void on_txtDragon_textEdited(const QString &arg1);

    void on_txtRedBuff_textEdited(const QString &arg1);

    void on_txtBlueBuff_textEdited(const QString &arg1);

    void on_txtBaron_textEdited(const QString &arg1);

    void on_actionQuit_triggered();

    void on_actionOpen_bindings_triggered();

    void on_btnClear_clicked();

    void on_btnConnect_clicked();

    void on_cbDragon_currentIndexChanged(int index);

    void on_cbRedBuff_currentIndexChanged(int index);

    void on_cbBlueBuff_currentIndexChanged(int index);

    void on_cbBaron_currentIndexChanged(int index);

    void on_actionSave_triggered();

    void on_cbWard_currentIndexChanged(int index);

    void on_txtWard_textChanged(const QString &arg1);

    void on_actionSetup_triggered();

private:
    Ui::MainWindow *ui;
    void loadBindings(QString fileName, bool showError);
    void save();
    void loadConfigs();
};

#endif // MAINWINDOW_H
